package lp.xian.equipment.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.domain.Supplier;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 设备附件列表对象 lp_adjunct
 *
 * @author ruoyi
 * @date 2023-06-30
 */
@Data
public class Adjunct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键递增 */
    private Integer adjunctId;

    /** 设备附件描述 */
    @Excel(name = "设备附件描述")
    private String adjunctName;

    /** 设备描述 */
    @Excel(name = "设备描述")
    private String description;

    /** 附件设备型号 */
    @Excel(name = "附件设备型号")
    private String modelType;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Integer supplierId;

    /** 附件设备价格 */
    @Excel(name = "附件设备价格")
    private BigDecimal adjunctPrice;

    /** 设备id */
    @Excel(name = "设备id")
    private Integer equipmentId;

    /** 附件设备分类id */
    @Excel(name = "附件设备分类id")
    private Integer classificationId;

    /** 0表示设备正常1表示设备保养2表示设备维修3表示设备损坏 */
    @Excel(name = "0表示设备正常1表示设备保养2表示设备维修3表示设备损坏")
    private Integer adjunctStatus;

    /** 0表示未审核1表示审核2表示审批 */
    @Excel(name = "0表示未审核1表示审核2表示审批")
    private Integer auditStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String auditOpinion;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditPerson;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approverOpinion;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approverTime;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approverPerson;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    private Classification classification;//设备分类

    private Supplier supplier;//供应商

    private Equipment equipment;//设备列表

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("adjunctId", getAdjunctId())
                .append("adjunctName", getAdjunctName())
                .append("description", getDescription())
                .append("modelType", getModelType())
                .append("supplierId", getSupplierId())
                .append("adjunctPrice", getAdjunctPrice())
                .append("equipmentId", getEquipmentId())
                .append("classificationId", getClassificationId())
                .append("adjunctStatus", getAdjunctStatus())
                .append("auditStatus", getAuditStatus())
                .append("auditOpinion", getAuditOpinion())
                .append("auditTime", getAuditTime())
                .append("auditPerson", getAuditPerson())
                .append("approverOpinion", getApproverOpinion())
                .append("approverTime", getApproverTime())
                .append("approverPerson", getApproverPerson())
                .append("sort", getSort())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
